home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_12_03 / plauger / new < prev    next >
Encoding:
Text File  |  1994-01-12  |  590 b   |  23 lines

  1. Listing 1 -- The header <new>
  2.  
  3. #ifndef _NEW_
  4. #define _NEW_
  5. #include <exception>
  6.                 // class xalloc
  7. class xalloc : public xruntime {
  8. protected:
  9. //      virtual void do_raise();
  10. public:
  11.         xalloc(const char * = 0, const char * = 0);
  12.         virtual ~xalloc();
  13.         };
  14.                 // function and object declarations
  15. fvoid_t *set_new_handler(fvoid_t *);
  16. void operator delete(void *);
  17. void operator delete[](void *);
  18. void *operator new(size_t);
  19. void *operator new[](size_t);
  20. void *operator new(size_t, void *);
  21. extern fvoid_t (*_New_hand);
  22. #endif
  23.